﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZR.Model.MES.op.DTO
{
    public class OpStatisticsDTO
    {

        /// <summary>
        /// 工作车间 
        ///</summary> 
        public string WorkshopId { get; set; }
        /// <summary>
        /// 工作车间 
        ///</summary>
  
        public string WorkshopName { get; set; }
        /// <summary>
        /// 生产日期 
        ///</summary>
        [SugarColumn(ColumnName = "productDate")]
        public DateTime? ProductDate { get; set; }
        /// <summary>
        /// 计划数量 
        ///</summary>
       
        public int? PlanNum { get; set; }
        /// <summary>
        /// 已经生产数量 
        ///</summary>
     
        public int? ProductedNum { get; set; }

        /// <summary>
        /// 生产进度 ：ProductedNum/PlanNum*100
        /// </summary>
        public int  ProductProgressRate { get; set; }
        /// <summary>
        /// 良品数量 
        ///</summary> 
        public int? GoodproductsNum { get; set; }
        /// <summary>
        /// 不良品数量 
        ///</summary>   
        public int? DefectiveProductsNum { get; set; }
        /// <summary> 
        /// 品质率： 良品数量/不良品数量*100
        /// </summary>
        public string  QualityRate { get; set; }    

        /// <summary>
        /// 生产开始时间 
        ///</summary>
      
        public DateTime? ProductStarttime { get; set; }
        /// <summary>
        /// 生产结束时间 
        ///</summary>
      
        public DateTime? ProductEndtime { get; set; }

        /// <summary>
        /// 是否正在生产
        /// </summary>
        public  bool  isProducting { get; set; }
        /// <summary>
        /// 线体id 
        ///</summary>
       
        public string LineId { get; set; }

        /// <summary>
        /// 排序序号
        /// </summary>
        public int  numSort { get; set; }
        /// <summary>
        /// 线体名称 
        ///</summary>

        public string LineName { get; set; }
        /// <summary>
        ///  
        ///</summary>
       
        public string CreatedBy { get; set; }
        /// <summary>
        ///  
        ///</summary>
        
        public string CreatedTime { get; set; }
        /// <summary>
        ///  
        ///</summary>
       
        public string UpdatedBy { get; set; }
        /// <summary>
        ///  
        ///</summary>
    
        public string UpdatedTime { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public int Id { get; set; }
    }
}
